import 'package:flutter/material.dart';

class Welcome extends StatelessWidget {
  Welcome({
    Key? key,
    required this.first,
    required this.second,
  }) : super(key: key);

  String first;

  String second;

  @override
  Widget build(BuildContext context) {
    return RichText(
      textAlign: TextAlign.start, // 设置富文本对齐方式
      text: TextSpan(children: [
        TextSpan(
          text: first,
          style: const TextStyle(
            fontSize: 20,
            color: Colors.black,
            fontWeight: FontWeight.bold,
          ),
        ),
        TextSpan(
          text: second,
          style: const TextStyle(
            fontSize: 16,
            color: Colors.black,
            fontWeight: FontWeight.bold,
          ),
        ),
      ]),
    );
  }
}
